package com.kefu.admin.utils;

import com.kefu.admin.modules.tgqmdj.model.TgCommtable;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CechData {

    public static Map<String,String> commkey = new HashMap<>();


    public static String getCommkeyByKey(String keys) {
        return commkey.get(keys);
    }


    public static void setCommkey(List<TgCommtable> querycommtableList) {
        for (int i = 0; i < querycommtableList.size(); i++) {
            TgCommtable tgCommtable = querycommtableList.get(i);
            CechData.commkey.put(tgCommtable.getKeys(),tgCommtable.getValues());
        }
    }
}
